package 装饰者设计模式;

public class Test {
    public static void main(String[] args) {
        HeroStatusBase aikun = new Hero();
        System.out.println("英雄的初始状态"+aikun.nowHurt());
        aikun.nowStatus();
        System.out.println("打红了！！");
      aikun = new RedBuff(aikun);
        System.out.println("英雄伤害："+aikun.nowHurt());
        aikun.nowStatus();

        System.out.println();
        System.out.println("打蓝了！！");
        aikun = new BuleBuff(aikun);
        System.out.println("英雄伤害："+aikun.nowHurt());
        aikun.nowStatus();
        System.out.println();
        System.out.println("打龙了！！！");
        aikun = new DrogBuff(aikun);
        System.out.println("英雄伤害："+aikun.nowHurt());
        aikun.nowStatus();

        System.out.println();
        System.out.println("打红了！！！");
        aikun = new RedBuff(aikun);
        System.out.println("英雄伤害："+aikun.nowHurt());
        aikun.nowStatus();

    }
}
